import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'
import Zixishi from '../views/Zixishi.vue'
import Dayi from '../views/Dayi.vue'
import gerenrenzheng from '../views/gerenrenzheng.vue'
import jigourenzheng from '../views/jigourenzheng.vue'
import fufei from '../views/fufei.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home
  },
  {
    path: '/about',
    name: 'About',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "about" */ '../views/About.vue')
  },
  {
    path:'/zixishi',
    name:'Zixishi',
    component:Zixishi
  },
  {
    path:'/dayi',
    name:'Dayi',
    component:Dayi
  },
  {
    path:'/gerenrenzheng',
    name:'gerenrenzheng',
    component:gerenrenzheng
  },
  {
    path:'/jigourenzheng',
    name:'jigourenzheng',
    component:jigourenzheng
  },
  {
    path:'/fufei',
    name:'fufei',
    component:fufei
  },
]

const router = new VueRouter({
  routes
})

export default router
